package com.qf.agro.pojo.crop;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;


/**
 * 继电器表
 *
 * @TableName sa_agro_relay
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@TableName("sa_agro_relay")
public class SaAgroRelay implements Serializable {

    /**
     *
     */
    @NotNull(message = "[]不能为空")
    @ApiModelProperty("")
    private Long relayId;
    /**
     *
     */
    @ApiModelProperty("")
    private Long benRelayId;
    /**
     *
     */
    @ApiModelProperty("")
    private String type;
    /**
     *
     */
    @ApiModelProperty("")
    private Integer code;
    /**
     *
     */
    @ApiModelProperty("")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date date;

    private String relayName;
}
